﻿using System;

namespace XCI.Annotations
{
    /// <summary>
    /// 企业账号功能
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class EnterpriseUserAttribute :  Attribute
    {
        /// <summary>
        /// 错误消息
        /// </summary>
        public string ErrorMessage { get; set; } = "当前功能需要使用企业账号登陆使用";

        public EnterpriseUserAttribute()
        {
            
        }

        public EnterpriseUserAttribute(string errorMessage)
        {
            this.ErrorMessage = errorMessage;
        }
    }
}